home *** CD-ROM | disk | FTP | other *** search
- global foremovie
-
- on startpictset
- global startpictnum
- if (startpictnum = 2) or (startpictnum = 3) then
- set the castNum of sprite 3 to the number of member "002/003"
- else
- if (startpictnum = 5) or (startpictnum = 12) then
- set the castNum of sprite 3 to the number of member "005/012"
- else
- if (startpictnum = 7) or (startpictnum = 14) then
- set the castNum of sprite 3 to the number of member "007/014"
- else
- if (startpictnum = 17) or (startpictnum = 27) then
- set the castNum of sprite 3 to the number of member "017/027"
- else
- if (startpictnum = 23) or (startpictnum = 26) then
- set the castNum of sprite 3 to the number of member "023/026"
- else
- set a to digitchange(startpictnum)
- set the castNum of sprite 3 to the number of member a
- end if
- end if
- end if
- end if
- end if
- end
-
- on digitchange num
- set a to num / 100
- set b to (num - (100 * a)) / 10
- set c to num - (100 * a) - (10 * b)
- return a & b & c
- end
-